package com.xyz.springcloud.controller;

import com.xyz.springcloud.service.OrderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 肖咉卓
 */
@RestController
public class OrderController {

    @Resource
    private OrderService orderService;

    @GetMapping("/snowflake")
    public String index(){
       return orderService.getIDBYSnowFlake();
    }
}
